package com.ncr.travel.tas.configuration.service.messaging;

import java.io.Serializable;

import com.ncr.travel.tas.shared.configuration.ConfigurationNodeEnum;
import com.ncr.travel.tas.shared.configuration.ConfigurationProductKey;

public class ConfigurationNodeCriteria implements Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	private ConfigurationNodeEnum type;

	private String key;

	public ConfigurationNodeCriteria(ConfigurationNodeEnum type,
			String configurationName) {
		this.type = type;
		this.key = configurationName;
	}

	public ConfigurationNodeCriteria(ConfigurationNodeEnum type,
			ConfigurationProductKey kioskcheckin) {
		this.type = type;
		this.key = kioskcheckin.toString();
	}

	void setType(ConfigurationNodeEnum type) {
		this.type = type;
	}

	ConfigurationNodeEnum getType() {
		return type;
	}

	void setKey(String key) {
		this.key = key;
	}

	String getKey() {
		return key;
	}

	@Override
	public String toString(){
		return key+":"+type.toString();
	}

}
